package com.emapp.lccode.base

import java.io.Serializable

/**
 * EventBus传递数据使用
 */
class EventBusModel(var type: EventBusConfig) : Serializable {
    var content = ""
    var `object`: Any? = null
//        set(object) {
//            field = `object`
//        }
    var code = 0

    constructor(type: EventBusConfig, content: String) : this(type) {
        this.content = content
    }

    constructor(type: EventBusConfig, `object`: Any) : this(type) {
        this.`object` = `object`
    }

    constructor(type: EventBusConfig, `object`: Any, content: String) : this(type) {
        this.`object` = `object`
        this.content = content
    }

    constructor(type: EventBusConfig, code: Int) : this(type) {
        this.code = code
    }

    companion object {
        private const val serialVersionUID = 2457040098627212163L
    }
}